package util
{
	import flash.display.DisplayObject;

	public class DisplayUtil
	{
		public function DisplayUtil()
		{
		}
		
		public static function showDisplayObject(obj:*, visible:Boolean=true):void
		{
			if(!obj) return;
			if(obj is DisplayObject)
				obj.visible = visible;
			else if(obj is Array)
			{
				for(var i:uint=0;i<obj.length;i++)
				{
					if(obj[i])
						obj[i].visible = visible;
				}
			}
			else
			{
				obj.visible = visible;
			}
		}
	}
}